package routers

import (
	"github.com/astaxie/beego"
)

func init() {

	beego.GlobalControllerRouter["Fblog/controllers:CategoryController"] = append(beego.GlobalControllerRouter["Fblog/controllers:CategoryController"],
		beego.ControllerComments{
			Method: "Get",
			Router: `/category`,
			AllowHTTPMethods: []string{"get"},
			Params: nil})

	beego.GlobalControllerRouter["Fblog/controllers:CategoryController"] = append(beego.GlobalControllerRouter["Fblog/controllers:CategoryController"],
		beego.ControllerComments{
			Method: "Post",
			Router: `/category`,
			AllowHTTPMethods: []string{"post"},
			Params: nil})

	beego.GlobalControllerRouter["Fblog/controllers:CategoryController"] = append(beego.GlobalControllerRouter["Fblog/controllers:CategoryController"],
		beego.ControllerComments{
			Method: "GetAll",
			Router: `/category/all`,
			AllowHTTPMethods: []string{"get"},
			Params: nil})

	beego.GlobalControllerRouter["Fblog/controllers:EditorController"] = append(beego.GlobalControllerRouter["Fblog/controllers:EditorController"],
		beego.ControllerComments{
			Method: "Post",
			Router: `/uploadFile`,
			AllowHTTPMethods: []string{"post"},
			Params: nil})

	beego.GlobalControllerRouter["Fblog/controllers:TopicController"] = append(beego.GlobalControllerRouter["Fblog/controllers:TopicController"],
		beego.ControllerComments{
			Method: "Get",
			Router: `/topic`,
			AllowHTTPMethods: []string{"get"},
			Params: nil})

	beego.GlobalControllerRouter["Fblog/controllers:TopicController"] = append(beego.GlobalControllerRouter["Fblog/controllers:TopicController"],
		beego.ControllerComments{
			Method: "Post",
			Router: `/topic`,
			AllowHTTPMethods: []string{"post"},
			Params: nil})

	beego.GlobalControllerRouter["Fblog/controllers:TopicController"] = append(beego.GlobalControllerRouter["Fblog/controllers:TopicController"],
		beego.ControllerComments{
			Method: "GetAll",
			Router: `/topic/all`,
			AllowHTTPMethods: []string{"get"},
			Params: nil})

	beego.GlobalControllerRouter["Fblog/controllers:TopicController"] = append(beego.GlobalControllerRouter["Fblog/controllers:TopicController"],
		beego.ControllerComments{
			Method: "DeleteTopic",
			Router: `/topic/mstatus`,
			AllowHTTPMethods: []string{"post"},
			Params: nil})

	beego.GlobalControllerRouter["Fblog/controllers:TopicController"] = append(beego.GlobalControllerRouter["Fblog/controllers:TopicController"],
		beego.ControllerComments{
			Method: "TopicView",
			Router: `/topic/v1/:id`,
			AllowHTTPMethods: []string{"get"},
			Params: nil})

}
